package com.lvbaoins.creditapp.core.exception.enums;

public enum ErrorExceptionEnum implements AbstractBaseExceptionEnum {

    SUCCESS(10000,"成功"),

    FAIL(10001,"失败"),

    NOT_LOGINING(10002, "当前用户未登陆,请重新登陆"),
    LOGIN_ERROR(10003, "当前客户不存"),
    REQUEST_NULL(10004, "参数错误，缺少必要参数"),
    USER_NOT_EXIT(10005, "用户不存在"),
    PRODUCT_NOT_EXIT(10006, "当前产品不存在"),
    LOGIN_NO_PERMISSION(10007, "没有权限登录"),
    USERNAME_PWD_ERROR(10008, "账号密码错误"),
    USER_ALREADY_REG(10009, "当前用户已存在"),



    SYSTEM_ERROR(99999, "系统繁忙,请稍后再试");

    ErrorExceptionEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    private Integer code;

    private String message;

    public void setCode(Integer code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
